<?php

/**
 * JingYao-backend
 *
 * @link     https://gitee.com/wang-zhihui-release/jingyao-backend
 * @apiDocument https://gitee.com/wang-zhihui-release/jingyao-backend/wikis/
 */

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreatePassCardsTable extends Migration
{
    /**
     * Run the migrations.
     */
    public function up()
    {
        Schema::create('pass_cards', function (Blueprint $table) {
            $table->id();
            $table->string('flow_register_code')->nullable()->comment('流管登记编码');
            $table->string('pass_card_photo')->nullable()->comment('出入证照片');
            $table->integer('user_id');
            $table->string('check_message')->nullable();
            $table->tinyInteger('check_status')->default(0);
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down()
    {
        Schema::dropIfExists('pass_cards');
    }
}
